package com.unlcn.ils.kas.service.order.impl;

import com.unlcn.ils.kas.dao.mapper.order.PushOrderLogMapper;
import com.unlcn.ils.kas.dao.model.order.PushOrderLog;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.unlcn.ils.kas.service.order.PushOrderLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 拉取订单日志表 服务实现类
 * </p>
 *
 * @author qichao
 * @since 2018-04-17
 */
@Service
public class PushOrderLogServiceImpl extends ServiceImpl<PushOrderLogMapper, PushOrderLog> implements PushOrderLogService {

    @Autowired
    private PushOrderLogMapper pushOrderLogMapper;

    @Override
    public List<PushOrderLog> selectNowDay(Integer type, String pushThreadName) {
        return pushOrderLogMapper.selectNowDay(type, pushThreadName);
    }

    @Override
    public Date getLastTime(Integer type) {
        return pushOrderLogMapper.getLastTime(type);
    }
}
